]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathyClient: Don't ignore GAsyncReadyCallback
authorColin Walters <walters@verbum.org>
Thu, 23 Jun 2011 23:22:43 +0000 (19:22 -0400)
committerColin Walters <walters@verbum.org>
Thu, 23 Jun 2011 23:28:21 +0000 (19:28 -0400)
This is better for memory management, and we'll see any errors this
way, which we may eventually want to do something with.

We need to make this change because gjs recently started checking
(allow-none) on callbacks.

js/ui/telepathyClient.js

index c4090b68a91d3a2694cadba748f079f8b8de7e3c..5fb7fb0b9806292f9230eb73846dfdbef58729dd 100644 (file)
@@ -382,7 +382,7 @@ Source.prototype = {
         }
 
         let msg = Tp.ClientMessage.new_text(type, text);
-        this._channel.send_message_async(msg, 0, null);
+        this._channel.send_message_async(msg, 0, Lang.bind(this, function (src, result) { this._channel.send_message_finish(src, result);  }));
     },
 
     _presenceChanged: function (contact, presence, status, message) {